import 'package:flutter_test/flutter_test.dart';
import 'package:media_fusion_flutter/media_fusion_flutter.dart';
import 'package:media_fusion_flutter/media_fusion_flutter_platform_interface.dart';
import 'package:media_fusion_flutter/media_fusion_flutter_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockMediaFusionFlutterPlatform
    with MockPlatformInterfaceMixin
    implements MediaFusionFlutterPlatform {

  @override
  Future<String?> getPlatformVersion() => Future.value('42');
}

void main() {
  final MediaFusionFlutterPlatform initialPlatform = MediaFusionFlutterPlatform.instance;

  test('$MethodChannelMediaFusionFlutter is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelMediaFusionFlutter>());
  });

  test('getPlatformVersion', () async {
    MediaFusionFlutter mediaFusionFlutterPlugin = MediaFusionFlutter();
    MockMediaFusionFlutterPlatform fakePlatform = MockMediaFusionFlutterPlatform();
    MediaFusionFlutterPlatform.instance = fakePlatform;

    expect(await mediaFusionFlutterPlugin.getPlatformVersion(), '42');
  });
}
